<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
	request.setAttribute("path", path);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>1</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<jsp:include page="/scripts/common/index.html"></jsp:include>
<jsp:include page="/scripts/jquery/index.html"></jsp:include>
<jsp:include page="/scripts/dhtmlx/index.html"></jsp:include>
<jsp:include page="/scripts/bootstrap/index.html"></jsp:include>
<link rel="stylesheet" href="${basePath }style/default.css">
<script type="text/javascript">
	$(function(){
		//获取父页面要传入本页面的内容
		var popupCont = parent.document.getElementById("popupCont").innerHTML;
		//获取title
		var title = parent.document.getElementById("myFrame").title;
		$("#popcontDiv").html(popupCont);
		$("#titles").html(title);
	});
	/* 点击事件 */
	function check(obj){
		parent.popClick(obj);
	}
	/* 关闭事件 */
	function closeDiv(obj) {
		/* 关闭窗口前触发的方法 */
		if(obj.id!="closeTabDiv"){
			parent.popCloseBefore();
		}
		parent.document.getElementById("myTree2").style.display = "none";
		/* 关闭窗口后触发的方法 */
		if(obj.id!="closeTabDiv"){
			parent.popCloseAfter();
		}
	}
	/* 双击title事件 */
	function dbclick() {
		if (parent.document.getElementById("myFrame").style.width == "90%") {
			parent.document.getElementById("myFrame").style.cssText = "height:100%;width:100%;border:0px;";
		} else {
			parent.document.getElementById("myFrame").style.cssText = "height:95%;width:90%;border:0px;margin-left:5%;margin-top:1%;margin-bottom:5%;";
		}
	}
</script>
</head>
<body id="popup">
	<div class="TreeDiv1" style="margin:auto;position:absolute;z-index:999999999;width:100%;height:100%;border:1px solid #e9e8e8">
		<table style="height:100%;width:100%">
			<tr>
				<td class="popuptitle" ondblclick="dbclick();" unselectable="on" onselectstart="return false;"><span id="titles" style="position: relative;top:5px"></span>
					<div class="closeBtn" style="height:auto;">
						<button type="button" id="closeTabDiv" onclick="closeDiv(this)" class="btn btn-default" aria-label="Left Align" style="color:#000000;border:0px;width:30px">
							<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
						</button>
					</div></td>
			</tr>
			<tr>
				<td style="height:*;" valign="top">
					<div id="popcontDiv" style="width:100%;margin-top:5px;height:100%;overflow-y:auto;">
						
					</div>
				</td>
			</tr>
			<tr>
				<td class="closeTd">
					<div class="closeDiv">
						<button onclick="closeDiv(this)" id="popupClose" class="btn btn-primary" type="button" style="margin-top:3px">
							<span>确定</span>
						</button>
					</div>
				</td>
			</tr>
		</table>
	</div>
</body>
</html>
